package zigzag.designpattern.chain;

abstract class Logger{
    public static int ERROR = 0;
    public static int DEBUG = 1;
    public static int INFORMATION = 2;
    
    protected int mask;
 
    // The next element in the chain of responsibility
    protected Logger next;
    public Logger setNext( Logger log)
    {
        next = log;
        return log;
    }
 
    abstract protected void writeMessage( int priority, String msg );
 
}
